package uk.co.q3c.deplan.client.domain.dag;

import java.io.Serializable;

public class DAGEdgeChange<T> implements SharedStructureChange, Serializable {
	private static final long serialVersionUID = 1L;
	private boolean add;
	private T from;
	private T to;
	private boolean applied;

	// @Id
	// private Long id;

	@SuppressWarnings("unused")
	private DAGEdgeChange() {
		super();
	}

	/**
	 * @param add
	 * @param from
	 * @param to
	 */
	public DAGEdgeChange(boolean add, T from, T to) {
		super();
		this.add = add;
		this.from = from;
		this.to = to;
	}

	@Override
	public boolean isAdd() {
		return add;
	}

	public T getFrom() {
		return from;
	}

	public T getTo() {
		return to;
	}

	@Override
	public void setApplied(boolean applied) {
		this.applied = applied;
	}

	public boolean isApplied() {
		return applied;
	}

}
